package com.group.service;

import com.group.pojo.Delivery;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
public interface DeliveryService{

    /**
     * 多条件查询
     * @param delivery
     * @return
     */
    List<Delivery> findByProperty(Delivery delivery);

    /**
     * 根据订单id进行各属性修改
     * @return
     */
    boolean updateDelivery(Delivery delivery,Integer id);

    /**
     * 创建配送订单
     * @param delivery
     * @return
     */
    boolean insertDelivery(Delivery delivery);

    /**
     * 多删除和恢复订单
     * @param args
     * @param jud
     * @return
     */
    boolean deleteByDeliveryId(String []args , Integer jud);

    /**
     * 订单信息审核
     * @param args
     * @param jud
     * @return
     */
    boolean updateDeliveryExamine(String []args,Integer jud);

    /**
     * 查询所有
     * @return
     */
    List<Delivery> findAll();

    List<Delivery> findById(Delivery delivery);

    Delivery findDeliveryById(Integer id);
}
